include scripts/Makefile
module_make = $(MAKE) -C $(1)
module_clean =$(MAKE) clean -C $(1)

.PHONY: all mm mc clean

all:$(Target)

test:
	@echo $(1)

mm:
	$(foreach n,$(Modules),$(call module_make,$(n);))

mc:
	$(foreach n,$(Modules),$(call module_clean,$(n);))

$(Target):mm
	$(CC) $(CFLAGS) -o $(Target) $(AllObjs) $(Libs)
	echo $(Target) make done!

clean:mc
	rm -rf $(Target)
	@ echo clean done!
